<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="/Public/js/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/index.css"> 
<title>宠物领养网后台</title>
</head>
	<body>

<div class="admin_top">商家后台登录</div>

<div class="inputtype">
  <div class="inputtypein font_info">账号: </div> 
  <div class="inputtypein input_info username"><input type="text" ></div>
</div>



<div class="inputtype">
  <div class="inputtypein font_info">密码: </div> 
  <div class="inputtypein input_info password"><input type="text" ></div>
  <div class="clear"></div>
  <div class="password_hava">*默认密码:123456</div>
</div>

<div class="save_password">修改密码</div>

<div class="clear"></div>
<div class="login_info">登录</div>

<script>
	$('.login_info').click(function(){
		var username=$('.username input').val();
		var password=$('.password input').val();
        $.post("<?php echo U('Index/login');?>",{username:username,password:password},function(data){
             if(data==100){
             	// location.href="<?php echo U('Index/list_user');?>";
              location.href="<?php echo U('Index/useList');?>";
                alert('登录成功');
             }else if(data==101){
                alert('此账号还没有用户');
             }else if(data==102){
             	alert('密码错误');
             }
        })
	})
</script>
<script type="text/javascript">
	$('.save_password').click(function(){
		location.href="<?php echo U('Index/upPassword');?>";
	})
</script>

	</body>
</html>